home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Positioning of ProxyShape < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Positioning of ProxyShape
  2. Sent:        3/28/96 8:56 AM
  3. Received:    3/28/96 9:04 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I'm using the CProxyShape class of ODFDraw to show an embedded frame. I use
  9. >CProxyShape::MapShape to position the proxyshape at specified location in my
  10. >embedding frame (top, centre, bottom). When I store and read back my part,
  11. >the positioning is not persistent, but the embedded frame shows up in the
  12. >top-left corner of the embedding frame. The selection shape (the four
  13. >handles) is shown in the saved position. It seems that the shape of the
  14. >proxy and the position of the embedded frame is not syncronised. When I use
  15. >the CProxyShape::MapShapefunction to move the shape, they get syncronised
  16. >again. How do I get the embedded frame in the right position when I launch
  17. >my document?
  18. >
  19. >Steinar Tyvand
  20. >--------------------------------------------------------------
  21. >Steinar Tyvand             e-mail: Steinar.Tyvand@si.sintef.no
  22. >SINTEF Unimed Rehab        Phone:  +47 22 06 78 29 (work)
  23. >Box 124 Blindern           Fax:    +47 22 06 79 09 (work)
  24. >N-0314 Oslo                Phone:  +47 67 56 17 79 (home)
  25. >Norway                     Fax:    +47 67 56 05 36 (home)
  26. >--------------------------------------------------------------
  27.  
  28. In OpenDoc only the frame shape is persistent. The position is not. The 
  29. position is described by the external transform of the facet which is not 
  30. persitent. It is up to the part to save it along with its intrinsic data. 
  31. In ODFDraw I save the position of the embedded frame using the fFrameRect 
  32. in CProxyShape. The fFrameRect is then used when I create the facet to 
  33. calculate the external transform. Check that you are using the right 
  34. position when creating your embedded facet after reading the document.
  35.  
  36. .......................................................................
  37.  Henri Lamiraux                                      lamiraux@apple.com
  38.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  39. .......................................................................
  40.  
  41.  
  42.